<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <title>注册</title>
    <link rel="stylesheet" href="../../assets/css/bootstrap.min.css"/>
    <link rel="stylesheet" href="../../assets/font-awesome/4.5.0/css/font-awesome.min.css"/>
    <link rel="stylesheet" href="../../assets/css/ace.min.css" class="ace-main-stylesheet" id="main-ace-style"/>
    <link rel="stylesheet" href="../../assets/css/login/member.css">
   <link rel="stylesheet" href="../../assets/css/admin.css">

</head>
<body>
<div class="head">
    <div class="header">
        <div class="header-cnt fn-clear">
            <h1 class="logo">
                <a href="" class="logo-img logo-img-jx" title="激想云商零售管理">
                    激想云商零售管理
                </a>
            </h1>
            <h2 class="logo-title">
                注册
            </h2>
            <ul class="jx-nav">
                <li class="nav-first">
                    <a href="../index.html">注册</a>
                </li>
                <li class="nav-last">
                    <a href="../index.html" target="_blank" seed="nav-link-advice">前往登录</a>
                </li>
            </ul>
        </div>
    </div>
</div>
<div class="regHeadBottom">
    <p class="headBottomTitle">创建您的云商帐户</p>
</div>
<div class="container">
    <div class="content">
        <div class="maincenter">
            <div class="maincenter-box">
                <div class="maincenter-box-tip dashed">
                    <p class="ui-tiptext ui-tiptext-message">
                        激想云商账户名<span class="ui-form-text" id="J-mobile">15900684377</span></p>
                </div>
                <form class="ui-form" id="regCompleteForm" method="post" action="">
                    <fieldset>
                        <h3 class="ui-form-title ui-form-title-first"><strong>登录密码</strong><span class="explain">登录时需验证，保护账户信息</span>
                        </h3>
                        <div class="ui-form-item">
                            <label class="ui-label">登录密码</label>
                            <input type="password" id="password_input" name="password" class="ui-input i-text"
                                   oncontextmenu="return false" onpaste="return false" oncopy="return false"
                                   oncut="return false" autocomplete="off" value="" placeholder="请输入密码">
                            <div class="ui-form-explain"><i class="fa fa-times-circle ui-form-icon"
                                                            aria-hidden="true"></i><span>必须是8-20位英文字母、数字或符号，不能是纯数字</span>
                            </div>
                        </div>
                        <div class="ui-form-item">
                            <label class="ui-label">再输入一次</label>
                            <input type="password" id="rePassword_input" name="rePassword" class="ui-input i-text"
                                   oncontextmenu="return false" onpaste="return false" oncopy="return false"
                                   oncut="return false" autocomplete="off" value="" placeholder="请重复输入密码">
                            <div class="ui-form-explain"><i class="fa fa-times-circle ui-form-icon"
                                                            aria-hidden="true"></i><span></span>
                            </div>
                        </div>
                        <div class="dashed"></div>
                        <h3 class="ui-form-title ui-form-title-first"><strong>用户信息</strong><span
                                class="explain">请填写真实信息</span>
                        </h3>
                        <div class="ui-form-item">
                            <label class="ui-label">姓名</label>
                            <input type="text" id="username" name="username" class="ui-input i-text"
                                   autocomplete="off" value="" placeholder="请输入姓名">
                            <div class="ui-form-explain"><i class="fa fa-times-circle ui-form-icon"
                                                            aria-hidden="true"></i><span></span>
                            </div>
                        </div>
                        <div class="ui-form-item">
                            <label class="ui-label">姓名</label>
                            <input class="ui-radio" type="radio" id="male" name="gender" value="m" checked="checked"
                                   seed="JCompleteForm-male" smartracker="on">
                            <label for="male">男</label>
                            <input class="ui-radio" type="radio" id="female" name="gender" value="f"
                                   seed="JCompleteForm-female" smartracker="on">
                            <label for="female">女</label>
                            <div class="ui-form-explain"><i class="fa fa-times-circle ui-form-icon"
                                                            aria-hidden="true"></i><span></span>
                            </div>
                        </div>
                        <div class="dashed"></div>
                        <div class="ui-form-item ui-form-item-last">
                            <div class="ui-button ui-button-morange">
                                <input type="submit" value="下一步" class="ui-button-text">
                            </div>
                        </div>
                    </fieldset>

                </form>
            </div>
        </div>
    </div>
</div>
<div class="footer">
    <div class="footer-inner">
        <div class="footer-content">
            沪ICP备15052275号-2
        </div>
    </div>
</div>
<script src="../../assets/js/jquery-1.11.3.min.js"></script>
<script src="../../assets/js/jquery.validate.min.js"></script>
</body>
<script>
    //表单验证
    $("#regCompleteForm").validate({
        /*onkeyup: function (element, event) {
            //去除左侧空格
            var value = this.elementValue(element).replace(/^\s+/g, "");
            $(element).val(value);
        },*/
        onfocusout: function (element, event) {
            var value = this.elementValue(element).replace(/\s|\xA0/g,"");
            $(element).val(value);
        },
        errorPlacement: function (error, element) {
            error.replaceAll(element.next().find("span"));
        },
        rules: {
            password: {
                required: true,
                minlength: 8
            },
            rePassword: {
                required: true,
                equalTo: "#password_input",
                minlength: 8

            },
            username: {
                required: true
            }

        },
        messages: {
            password: {
                required: "请输入密码",
                minlength: "密码长度不小于8位"
            },
            rePassword: {
                required: "请重复输入密码",
                equalTo: "密码不一致",
                minlength: "密码长度不小于8位"
            },
            username: {
                required: "请输入姓名"
            }
        },
        highlight: function (e) {
            $(e).closest('.ui-form-item').addClass('ui-form-item-error');
        },
        success: function (e) {
            $(e).closest('.ui-form-item').removeClass('ui-form-item-error');
        },
        submitHandler: function (form) {
            window.location = './regSuccess.html'
        },
        invalidHandler: function (form) {
        }
    });
</script>
</html>